package com.example.seh.home.substitution;

import java.io.Serializable;

public class AddressInfoDTO implements Serializable {
    //地址id
    private Integer addressId;
    //用户id
    private Integer userId;
    //收件人或发件人的名字
    private String contactName;
    //收件人或发件人的电话
    private String contactPhone;
    //收件人或发件人的电子邮箱
    private String contactEmail;
    //收发货区域
    private String district;
    //详细的收发货地址
    private String detailAddress;
    //邮政编码
    private String postcode;
    //是否是默认地址
    private String isDefault;

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getContactEmail() {
        return contactEmail;
    }

    public void setContactEmail(String contactEmail) {
        this.contactEmail = contactEmail;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    public String getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(String isDefault) {
        this.isDefault = isDefault;
    }

    @Override
    public String toString() {
        return "AddressInfoDTO{" +
                "addressId=" + addressId +
                ", userId=" + userId +
                ", contactName='" + contactName + '\'' +
                ", contactPhone='" + contactPhone + '\'' +
                ", contactEmail='" + contactEmail + '\'' +
                ", district='" + district + '\'' +
                ", detailAddress='" + detailAddress + '\'' +
                ", postcode='" + postcode + '\'' +
                ", isDefault='" + isDefault + '\'' +
                '}';
    }
}